<form class="validate" action="{$BASE_PATH}" method='post'>
	<div class='formInline'>
		{$form->getElement('application')->render()}
		{$form->getElement('controller')->render()}
		{$form->getElement('method')->render()}
		{$form->getElement('pessoa[idpessoa]')->render()}
		<div class="userPass control-group noPaddingRight">
			{$form->getElement('pessoa[idpessoafisica][]')->getLabel()->render()}
			<div class="controls">
				{$form->getElement('pessoa[idpessoafisica][]')->render()}
				<!-- <div id="passwordStrength" class="dInlineBlock np0"></div> -->
			</div>
		</div>
	</div>
	<div class="boxActions">
		{$form->getElement('salvar')->render()}
	</div>
</form>
<table id='dataTable' class="tableList">
	<thead>
		<tr>
			<th><a href='#'>Tipo</a></th>
			<th><a href='#'>Nome/Razão Social</a></th>
			<th><a href='#'>Apelido/Fantasia</a></th>
			<th><a href='#'>CPF/CNPJ</a></th>
			<th><a href='#'>Sexo</a></th>
			<th><a href='#'>Status</a></th>
			<th><a href='#'>Cliente</a></th>
			<th><a href='#'>Fornecedor</a></th>
			<th><a href='#'>Criado em</a></th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$lista key=k item=i}
		<tr>
			<td>{$i->getTpPessoa()}</td>
			<td class='txtLeft ellipsis'>
				{$i->getNome()}
				<ul class="actionsTable">
					<li>
						{$Action->getClass('\Helper\Action\Admin\Pessoa')->atualizar($i)}
						{$Action->getClass('\Helper\Action\Admin\Pessoa')->deletar($i)}
					</li>
				</ul>
			</td>
			<td class='txtLeft'>{$i}</td>
			<td class='txtLeft'>{$i->getCpfCnpj()}</td>
			<td class='txtLeft'>{$i->getGenero()}</td>
			<td class='txtLeft'>{$i->getStatus()}</td>
			<td class='txtLeft'>{$i->getCliente()}</td>
			<td class='txtLeft'>{$i->getFornecedor()}</td>
			<td class='txtLeft'>{$i->get('dtcadastro')->format('d/m/Y H:i')}</td>
		</tr>
		{/foreach}
	</tbody>
</table>
{literal}
<script type="text/javascript">
	$(document).ready(function(){
		initValidate();
		initDataTable('#dataTable');
		$('select.select2').select2();
	});
</script>
{/literal}